<%--
  Created by IntelliJ IDEA.
  User: 柳胜酉
  Date: 2023/4/20
  Time: 18:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户登录</title>
    <link href="${pageContext.request.contextPath}/statics/style/css/Site.css" rel="stylesheet" type="text/css"/>
    <link href="${pageContext.request.contextPath}/statics/style/css/zy.layout.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/statics/style/css/zy.form.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/statics/style/css/index.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/statics/style/css/zy.menu.css" rel="stylesheet"/>
</head>

<script type="text/javascript" src="${pageContext.request.contextPath}/statics/scripts/jquery-3.6.1.js"></script>
<script type="text/javascript">
    $(function () {
        $("form").submit(
            function () {
                if ($(":text:eq(0)").val() === ""
                    || $(":password:eq(0)").val() === "") {
                    //表单选择器,    :input标签type属性值
                    alert("请填写完整信息!");
                    //阻止默认行为
                    return false;
                }
            })
    });
</script>

<body>
<div class="dvheader">
    <div class="dvheadertools">
        <span class="headerspantitle">进销存管理系统</span>
        <ul class="headerultools">

            <li class="headerlitools_info headerlitools" style="background-color: #1E1E1E">
                <div class="headeruserface" style="text-align: center;"><i
                        style="color: black;font-size: 19px;"></i>
                </div>
                <a href="${pageContext.request.contextPath}/register" style="color: whitesmoke">点击注册</a>
                <i style="margin-left: 8px;" class="icon-caret-down"></i>
                <ul class="headerlitools_ulinfo">
                </ul>
            </li>
        </ul>
    </div>
</div>

<div class="page-container"
     style="background-image: url('${pageContext.request.contextPath}/statics/images/background01.jpg')">
    <div class="dark-matter">
        <h1>用户登录<span>开启轻松管理，提升工作效率！</span></h1>
        <form method="post" action="${pageContext.request.contextPath}/doLogin">
            <label>用户名：</label> <label>
            <input type="text" name="user_name">
        </label><br>
            <label>密码：</label><label>
            <input type="text" name="password">
        </label><br>
            <input type="submit" value="提  交"> &nbsp;
            <input type="reset" value="重  置">
        </form>
    </div>
</div>


<div class="copyrights" id="copyrights">
    &copy; 2023 madballpad All rights reserved. <a
        href="tencent://Message/?Uin=842294358&websiteName=www.oicqzone.com&Menu=yes" title="版权信息"> 联系管理员</a>
</div>

</body>
</html>
